package com.hxw.schema.reflex;

import java.lang.reflect.Field;

/**
 * Created by Think on 2018/5/5.
 */
public class Reflex {

    public static void main(String[] args) {
        try {
            Class acl = Class.forName("com.hxw.schema.reflex.Student");
            System.out.println(acl.getName());
            Field[] fields = acl.getFields();
            for(Field field : fields){
                System.out.println("field = " + field.getName());
            }
        } catch (ClassNotFoundException e) {
            e.printStackTrace();
        }
    }
}
